package com.xxx.domain;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 登录记录
 * </p>
 *
 * @author jh
 * @since 2025-08-30
 */
@TableName("t_login_log")
@Data
public class LoginLog extends Model<LoginLog> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField("create_time")
    private Long createTime;
    @TableField("login_id")
    private Long loginId;
    /**
     * IP
     */
    private String ip;
    /**
     * 客户端
     */
    @TableField("client_info")
    private String clientInfo;
    /**
     * 登录方式
     */
    @TableField("login_type")
    private Integer loginType;
    /**
     * 登录是否成功
     */
    private Integer success;
    /**
     * 结果说明
     */
    private String remark;



    @Override
    protected Serializable pkVal() {
        return this.id;
    }


}
